package com.erp.dao;

import com.erp.data.ErpbaseUser;

public class ErpUserDao extends BaseDao {

	/**
	 * @author yyf
	 * @param entity
	 */
	public void save(ErpbaseUser entity) {
		getEntityManager().persist(entity);
	}

	public ErpbaseUser findById(Object id) {
		try {
			ErpbaseUser instance = getEntityManager().find(ErpbaseUser.class,
					id);
			return instance;
		} catch (RuntimeException re) {
			throw re;
		}
	}

}
